package cn.usian.mapper;

import cn.usian.jyzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper {
    @Select("select * from category where parent_id=0")
    List<Category> findC();

    @Select("select * from category")
    List<Category> findAll();


    List<Category> findOne();

    @Select("select * from category where id=#{id}")
    List<Category> findTow(Long id);

    @Select("select * from category where id=#{id}")
    List<Category> findThree(Long id);
}
